<script>
	export default {
		globalData:{
			// BASEURL:'https://java.heiwangke.net/hhk-shop-api',
			// WEBIMG:'https://java.heiwangke.net/',
			BASEURL:'https://shop.haooookan.cn/hhk-shop-api', 
			// WEBIMG:'https://shop.haooookan.cn/',
			WEBIMG:'https://shop.haooookan.cn/hhk-shop-api/profile/wechat_mini',
		},
		onLaunch: function() {
			uni.setStorageSync('isHttp', false)
			console.log('App Launch')
			// #ifdef MP-WEIXIN
			uni.setStorageSync('statusBarHeight',(uni.getWindowInfo().statusBarHeight+44)+'px')
			// #endif
			// #ifndef MP-WEIXIN
			uni.setStorageSync('statusBarHeight',(uni.getSystemInfoSync().statusBarHeight+44)+'px')
			// #endif
			uni.getSystemInfo({
				success: function(res) {
					uni.setStorageSync('safeAreaInsets',res.safeAreaInsets)
				}
			});
		},
		onShow: function() {
			uni.removeStorageSync('userinviteId')
			const updateManager = uni.getUpdateManager();
			updateManager.onUpdateReady(function(res) {
				uni.showModal({
					title: '更新提示',
					content: '新版本已经准备好，是否重启应用？',
					showCancel: true,
					success(res) {
						if (res.confirm) {
							uni.clearStorageSync();
							updateManager.applyUpdate();
						}
					}
				});
			});
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	.isprohibit{
		height: 100vh;
		overflow: hidden;
	}
	.tip{
		min-width: 48rpx;
		height: 32rpx;
		background: #CE7034;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 24rpx;
		color: #FFFFFF;
		text-align: center;
		line-height: 32rpx;
		margin-left: 10rpx;
		padding: 0rpx 6rpx;
		box-sizing: border-box;
	}
	/*每个页面公共css */
	@font-face {
		font-family: 'DINB';
		src: url('/common/DIN-Bold.otf');
		font-weight: normal;
		font-style: normal;
	}
	@font-face {
		font-family: 'FINE';
		src: url('/common/DIN-REGULAR-2.OTF');
		font-weight: normal;
		font-style: normal;
	}
	.DINB {
		color: #CE7034;
		font-family: 'DINB';
		font-size: 40rpx;
		.ic {
			color: #CE7034;
			font-family: 'DINB';
			font-weight: bold;
			font-size: 24rpx;
		}
	}
	
	.FINE {
		color: #D1CDCD;
		font-family: 'FINE';
		text-decoration-line: line-through;
		text-transform: none;
		font-weight: 500;
		font-size: 24rpx;
	}
	
	.flex_b{
		display: flex;
		align-items: center;
	}
	
	.k34 {
		width: 710rpx;
		margin: 20rpx auto;
		padding: 24rpx 22rpx;
		box-sizing: border-box;
		background: #F3F3F3;
		display: flex;
		justify-content: space-between;
		align-items: center;
		border-radius: 10rpx;
		.kflexl {
			display: flex;
			align-items: center;
			font-family: PingFang SC, PingFang SC;
			font-weight: bold;
			font-size: 30rpx;
			color: #000000;
	
			image {
				width: 32rpx;
				height: 32rpx;
				margin-right: 6rpx;
			}
	
			.lyh {
				width: 65rpx;
				height: 24rpx;
				background: linear-gradient(270deg, #E2650F 0%, #FEDBC3 100%);
				font-family: PingFang SC, PingFang SC;
				font-weight: 400;
				font-size: 18rpx;
				color: #ffffff;
				text-align: center;
				line-height: 24rpx;
				margin-left: 20rpx;
				position: relative;
			}
	
			.lyh:before {
				content: '';
				position: absolute;
				width: 0;
				height: 0;
				left: -24rpx;
				border-left: 12rpx solid transparent;
				border-right: 12rpx solid #FEDBC3;
				border-top: 12rpx solid transparent;
				border-bottom: 12rpx solid transparent;
	
			}
		}
	
		.test {
			font-family: PingFang SC, PingFang SC;
			font-weight: 500;
			font-size: 24rpx;
			color: #979797;
			margin-top: 10rpx;
		}
	
		.rimg {
			width: 100rpx;
			height: 100rpx;
			background-color: #fff;
			display: flex;
			justify-content: center;
			align-items: center;
			border-radius: 10rpx;
			image{
				width: 80rpx;
				height: 80rpx;
				border-radius: 10rpx;
			}
		}
	}
</style>